package com.top10.bean.wxpay;


import com.top10.enums.PayTypeEnum;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 支付时请求参数
 */

public class RefundRequest {

    /**
     * 支付方式.
     */
    private PayTypeEnum payTypeEnum;

    /**
     * 退款单号.
     */
    @NotEmpty(message = "退款单号不能为空")
    private String outRefundNo;

    /**
     * 订单号
     */
    @NotEmpty(message = "订单号不能为空")
    private String outTradeNo;

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    /**
     * 微信订单号
     */
    private String transactionId;

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    /**
     * 订单金额.
     */
    @NotNull(message = "订单金额不能为空")
    private Integer orderAmount;

    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空")
    private Integer refundFee;

    public Integer getRefundFee() {
        return refundFee;
    }

    public void setRefundFee(Integer refundFee) {
        this.refundFee = refundFee;
    }

    public PayTypeEnum getPayTypeEnum() {
        return payTypeEnum;
    }

    public void setPayTypeEnum(PayTypeEnum payTypeEnum) {
        this.payTypeEnum = payTypeEnum;
    }

    public String getOutRefundNo() {
        return outRefundNo;
    }

    public void setOutRefundNo(String outRefundNo) {
        this.outRefundNo = outRefundNo;
    }

    public Integer getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Integer orderAmount) {
        this.orderAmount = orderAmount;
    }
}
